package city.spring.modules.medicalstation.doctorsOrder.service;

import city.spring.modules.medicalstation.doctorsOrder.entity.DoctorsOrderEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：医嘱
 *
 * @author 谢金婷
 * @date 2020-11-09 09:46:37
 */
public interface DoctorsOrderService extends IService<DoctorsOrderEntity> {
    String CACHE_NAME = "doctors_order";

    /**
     * 业务处理：保存一个 <strong>医嘱</strong>
     *
     * @param entity 医嘱
     */
    void saveDoctorsOrder(DoctorsOrderEntity entity);

    /**
     * 业务处理：修改一个 <strong>医嘱</strong>
     *
     * @param entity 医嘱
     */
    void updateDoctorsOrder(DoctorsOrderEntity entity);

    /**
     * 业务处理：删除一个 <strong>医嘱</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteDoctorsOrder(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>医嘱</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteDoctorsOrder(List<String> primaryKeys);
}